<!-- todo 首页滑动删除没响应 -->
<template>
    <view class="container" :style="themeColor">
        <cart-temp ref="cartTemp" isHome></cart-temp>
    </view>
</template>

<script>
import cartTemp from "@/pages/cart/cartTemp.vue"
import { getUserCarList } from "@/utils/cartUtil.js"
export default {
    components: {
        cartTemp,
    },
    props: {
        visible: {
            type: Boolean,
            default: false,
        },
    },
    watch: {
        visible: {
            handler(newVal) {
                if (newVal) {
                    this.setStatusBarStyle("dark")
                    setTimeout((e) => {
                        this.$refs.cartTemp.getListHeight()
                    }, 100)
                }
            },
            immediate: true,
        },
    },
    onLoad(e) { },
    data() {
        return {
            refreshOk: false,
        }
    },
    methods: {},
    onShow() { },
    computed: {},
}
</script>

<style lang="scss"></style>
